package com.candy.security.jwt.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 登录用户身份权限
 */
@Data
@ToString
@NoArgsConstructor
public class LoginUser
{
	private Long id;

	private Long orgId;

	private String orgName;

	private String realName;

	private String loginName;

	private Integer gender;

	private String telphone;

	private String email;
	/**
	 * 用户唯一标识
	 */
	private String token;
	/**
	 * 登录时间
	 */
	private Long loginTime;
	/**
	 * 过期时间
	 */
	private Long expireTime;
	/**
	 * 登录IP地址
	 */
	private String ipaddr;
	/**
	 * 登录地点
	 */
	private String loginLocation;
	/**
	 * 浏览器类型
	 */
	private String browser;
	/**
	 * 操作系统
	 */
	private String os;

	private List<String> authorities;

	public LoginUser(List<String> authorities)
	{
		this.authorities=authorities;
	}
}
